//
//  MOImageLabel.h
//  MOPrefix
//
//  Created by alfie on 2021/1/29.
//

#import <UIKit/UIKit.h>


@class MOImageLabel;

@protocol MOImageLabelDelegate <NSObject>

- (void)didSelectedImageLabel:(MOImageLabel *)imageLabel;

@end


@interface MOImageLabel : UILabel

/** 代理 */
@property (nonatomic, weak) id <MOImageLabelDelegate>            delegate;

- (void)attachText:(NSString *)text image:(UIImage *)image titleSpaceImage:(CGFloat)titleSpaceImage imageSize:(CGSize)imageSize maxWidth:(CGFloat)maxWidth;

- (void)displayWithData:(id)data maxWidth:(CGFloat)maxWidth;

@end
